﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace WebAppHangfire.Controllers
{
    public class HomeController : Controller
    {
        public ContentResult Index()
        {
            var data = new { code = 2 };
            string str = "(" + Newtonsoft.Json.JsonConvert.SerializeObject(data) + ")";
            return new ContentResult() { Content = str, ContentType = "application/json" };
        }
    }
}
